package com.bee.oa.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.oa.dao.sm.OrganizationDao;
import com.bee.oa.domain.sm.Organization;
import com.bee.oa.service.sm.OrganizationService;

public class OrganizationServiceImpl implements OrganizationService {

	private OrganizationDao organizationDao;

	public void setOrganizationDao(OrganizationDao organizationDao) {
		this.organizationDao = organizationDao;
	}

	@Override
	public Serializable save(Organization entity) {
		return organizationDao.save(entity);
	}

	@Override
	public void saveAll(Collection<Organization> entities) {
		organizationDao.saveAll(entities);
	}

	@Override
	public Organization get(Long sid) {
		return organizationDao.get(sid);
	}

	@Override
	public List<Organization> find(String queryString, Object... values) {
		return organizationDao.find(queryString, values);
	}

	@Override
	public List<Organization> find(Organization entity) {
		return organizationDao.find(entity);
	}

	@Override
	public List<Organization> find(Map<String, String> params) {
		return organizationDao.find(params);
	}

	@Override
	public List<Organization> findAll() {
		return organizationDao.findAll();
	}

	@Override
	public void update(Organization entity) {
		organizationDao.update(entity);
	}

	@Override
	public void updateAll(Collection<Organization> entities) {
		organizationDao.updateAll(entities);
	}

	@Override
	public void delete(Organization entity) {
		organizationDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		organizationDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<Organization> entities) {
		organizationDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return organizationDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return organizationDao.page(params, pageNo, pageSize);
	}

}
